//
//  oldOrderInfo.h
//  laonianbang
//
//  Created by 勇拓 李 on 17/11/2.
//  Copyright © 2017年 zaiyou. All rights reserved.
//

#import "oldBasedModel.h"

//订单状态： 0新建待接单 1已接单待计时 2老年用户取消 3护工用户取消 4订单开始计时 5订单结束计时待支付 6订单已支付 7家属用户取消
typedef NS_ENUM (NSInteger, OldOrderStatus)   {
    New_Order = 0,
    Already_Accept,
    Old_Cancel,
    Supporter_Cancel,
    Order_Begin,
    Order_End,
    Order_Payed,
    Attendee_Cancel,
};

typedef NS_ENUM (NSInteger, OldRole)   {
    Role_Old = 1,
    Role_Support,
    Role_Family,
    Role_Government,
};

@interface oldAttendeeInfoAddition : oldBasedModel
@property (nonatomic, copy)NSString *introduce;
@property (nonatomic, copy)NSString *hobbies;
@property (nonatomic, copy)NSString *ps;
@end

@interface oldServerInfoAddition : oldBasedModel
@property (nonatomic, copy)NSString *introduce;
@property (nonatomic, copy)NSString *voiceIntroduce;
@property (nonatomic, copy)NSString *professionalRate;
@property (nonatomic, copy)NSString *serveCids;
@property (nonatomic, copy)NSString *userRate;
@property (nonatomic, copy)NSString *orderCount;
@end

@interface oldClientInfo : oldBasedModel
@property (nonatomic, copy)NSString *mobile;
@property (nonatomic, copy)NSString *uname;
@property (nonatomic, copy)NSString *role;
@property (nonatomic, copy)NSString *age;
@property (nonatomic, copy)NSString *sex;
@property (nonatomic, copy)NSString *avatar;
@property (nonatomic, copy)NSString *uid;
@end

@interface oldServerInfo : oldBasedModel
@property (nonatomic, copy)NSString *mobile;
@property (nonatomic, copy)NSString *uname;
@property (nonatomic, copy)NSString *role;
@property (nonatomic, copy)NSString *age;
@property (nonatomic, copy)NSString *sex;
@property (nonatomic, copy)NSString *avatar;
@property (nonatomic, copy)NSString *uid;
@property (nonatomic, strong)oldServerInfoAddition *addition;
@end

@interface oldAttendeeInfo : oldBasedModel
@property (nonatomic, copy)NSString *mobile;
@property (nonatomic, copy)NSString *uname;
@property (nonatomic, copy)NSString *role;
@property (nonatomic, copy)NSString *age;
@property (nonatomic, copy)NSString *sex;
@property (nonatomic, copy)NSString *avatar;
@property (nonatomic, copy)NSString *uid;
@property (nonatomic, strong)oldAttendeeInfoAddition *addition;
@end

@interface oldServeCategory : oldBasedModel
@property (nonatomic, copy)NSString *pid;
@property (nonatomic, copy)NSString *cname;
@property (nonatomic, copy)NSString *price;
@property (nonatomic, copy)NSString *timeCost;
@property (nonatomic, copy)NSString *pic;
@property (nonatomic, copy)NSString *content;
@property (nonatomic, copy)NSString *cid;
@end

@interface oldOrderInfo : oldBasedModel
@property (nonatomic, copy)NSString *status;
@property (nonatomic, copy)NSString *relation;
@property (nonatomic, copy)NSString *lat;
@property (nonatomic, copy)NSString *lng;
@property (nonatomic, copy)NSString *remark;
@property (nonatomic, copy)NSString *location;
@property (nonatomic, copy)NSString *voiceUrl;
@property (nonatomic, copy)NSString *photoUrl;
@property (nonatomic, copy)NSString *cancelReason;
@property (nonatomic, copy)NSString *startTime;
@property (nonatomic, copy)NSString *endTime;
@property (nonatomic, copy)NSString *costTime;
@property (nonatomic, copy)NSString *baseAmount;
@property (nonatomic, copy)NSString *tip;
@property (nonatomic, copy)NSString *totalAmount;
@property (nonatomic, copy)NSString *created_at;
@property (nonatomic, copy)NSString *oid;
@property (nonatomic, copy)NSString *familyVideoUrl;
@property (nonatomic, strong)oldClientInfo *clientInfo;
@property (nonatomic, strong)oldServerInfo *serverInfo;
@property (nonatomic, strong)oldAttendeeInfo *attendeeInfo;
@property (nonatomic, strong)oldServeCategory *serveCategory;

- (NSString *)getCurrentOrderStatus;

- (BOOL)ifCanceled;

- (NSString *)oldStatusString;

- (NSInteger)getTimeCostByMinutes;

@end
//"status":"0",
//"lat":"1",
//"lng":"1",
//"location":"大飒飒",
//"voiceUrl":"http://oy673naa2.bkt.clouddn.com/FpbI9n0mW5Bcx5Q4Dxyc04z2mIiR",
//"photoUrl":"DmAM0Sv9IicveE_aK1Cbzx79DC9f",
//"cancelReason":"1",
//"startTime":"2018-02-02 10:00:00",
//"endTime":"2018-02-02 11:00:00",
//"costTime":"360",
//"baseAmount":"0.99",
//"tip":"0.99",
//"totalAmount":"0.99",
//"created_at":"2018-02-02 10:00:00",
//"clientInfo":{
//    "uname":"宋大爷",
//    "role":"1",
//    "age":"66",
//    "sex":"1",
//    "avatar":"http://oy6757pec.bkt.clouddn.com/DmAM0Sv9IicveE_aK1Cbzx79DC9f",
//    "uid":"1"
//},
//"serverInfo":{
//    "uname":"宋大爷",
//    "role":"2",
//    "age":"66",
//    "sex":"1",
//    "avatar":"http://oy6757pec.bkt.clouddn.com/DmAM0Sv9IicveE_aK1Cbzx79DC9f",
//    "uid":"4"
//},
//"attendeeInfo":{
//    "uname":"宋大爷",
//    "role":"3",
//    "age":"66",
//    "sex":"1",
//    "avatar":"http://oy6757pec.bkt.clouddn.com/DmAM0Sv9IicveE_aK1Cbzx79DC9f",
//    "uid":"7"
//},
//"serveCategory":{
//    "pid":"0",
//    "cname":"陪护服务",
//    "price":"0.99",
//    "timeCost":"3600",
//    "pic":"http://oy6757pec.bkt.clouddn.com/DmAM0Sv9IicveE_aK1Cbzx79DC9f",
//    "content":"陪护照料老年人起居",
//    "cid":"1000"
//},
//"oid":"1"
//}
